/**
 * Created by XianTao on 2016/11/8
 * <p/>
 * Copyright (c) 2015-2015
 * Apache License
 * Version 2.0, January 2004
 * http://www.apache.org/licenses/
 */
package org.lego.jpa.base.entity;

import lombok.Data;

import javax.persistence.MappedSuperclass;
import javax.persistence.Version;
import java.io.Serializable;

@MappedSuperclass
@Data
public class EmptyEntity implements Serializable {
    @Version
    protected Integer version;  // 乐观锁
}
